package hcn.response;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * Created by ChenJij on 2023/3/30.
 */
@XmlRootElement(name = "Data")
public class QueryPrescriptionSetListResponse {
    private Long total;
    private List<SetListsBean> setLists;

    @XmlElement(name = "Total")
    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }


    @XmlElementWrapper(name = "SetLists")
    @XmlElement(name = "SetList")
    public List<SetListsBean> getSetLists() {
        return setLists;
    }

    public void setSetLists(List<SetListsBean> setLists) {
        this.setLists = setLists;
    }

    @XmlRootElement(name = "SetList")
    public static  class SetListsBean {
        //组套ID
        private String commonPrescriptionInfoId;
        //组套名称
        private String commonPrescriptionName;
        //处方类型  1西药方 2中成药方 3中草药方
        private String prescriptionType;

        @XmlElement(name = "SetId")
        public String getCommonPrescriptionInfoId() {
            return commonPrescriptionInfoId;
        }

        public void setCommonPrescriptionInfoId(String commonPrescriptionInfoId) {
            this.commonPrescriptionInfoId = commonPrescriptionInfoId;
        }

        @XmlElement(name = "SetName")
        public String getCommonPrescriptionName() {
            return commonPrescriptionName;
        }

        public void setCommonPrescriptionName(String commonPrescriptionName) {
            this.commonPrescriptionName = commonPrescriptionName;
        }

        @XmlElement(name = "DrugType")
        public String getPrescriptionType() {
            return prescriptionType;
        }

        public void setPrescriptionType(String prescriptionType) {
            this.prescriptionType = prescriptionType;
        }
    }
}